package com.wuchao.springs.aoppromax;

import com.wuchao.mapper.EntryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author wuchao66
 * @Date 2023/10/16 9:20
 * @PackageName:com.wuchao.springs.aoppromax
 * @ClassName: ShowEntry
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
//@Service("showEntry")
@Service
public class ShowEntry {
//    @Autowired--类型入参
//    @Qualifier("entryDao")
//    private EntryDao entryDao;//容器注入
@Resource //名字入参---spring  jvm的 名字唯一
private EntryDao entryDao;//容器注入

//    @Resource
//    private EntryMapper entryMapper;

    public void show(){
        System.out.println("我是service1111");
        entryDao.show();
    }
}
